<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;" />
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>选择医院</title>
	
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/mobile/jquery.mobile-1.4.2.min.css" />
	
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/mobile/jquery.mobile-1.4.2.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/page/weixin/jweixin-1.0.0.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/page/weixin/hospital/hospitalSel.js"></script>
	
<script type="text/javascript">

wx.config({
    debug: false, 
    appId: '${appId}', 
    timestamp: '${timestamp}', 
    nonceStr: '${nonceStr}', 
    signature: '${signature}',
    jsApiList: ['closeWindow','getLocation'] 
});

wx.ready(function(){
	
	if("${userhis}"=="userhis")
	{
		wx.closeWindow();
	}
	
	//获取地理位置信息
	wx.getLocation({
	    success: function (res) {
	        var latitude = res.latitude; // 纬度，浮点数，范围为90 ~ -90
	        var longitude = res.longitude; // 经度，浮点数，范围为180 ~ -180。
	        var speed = res.speed; // 速度，以米/每秒计
	        var accuracy = res.accuracy; // 位置精度
	        
	        getLocationName(latitude,longitude);
	    }
	});
});

wx.error(function(res){
	
});

</script>
</head>
<body>
<div data-role="page" id="pageone" style="background-color: #e9e9e9;">
<div style="width: 96%;padding-left: 2%;">
<input id="wx_open_id" type="hidden" value="${openId }">
<select id="selProvince"  onchange="createSelCity(this.value)">
	<option value="">选择省份</option>
</select>

<select id="selCity" onchange="createSelHospital(this.value)">
	<option value="" >选择城市</option>
</select>

<select id="selHospital"   onchange="createSelDoctor(this.value)">
	<option>选择医院</option>
</select>
</div>

<div data-role="footer" data-position="fixed"  align="center">
	<a href="javascript:selDoctor('${doctor.userId }','${doctor.name}');" data-role='button' style="width: 90%;">选择</a>
</div>
</div>
</body>
</html>